package com.example.airquality.air.controller;

import com.example.airquality.air.entity.QualityIndex;
import com.example.airquality.air.service.impl.QualityIndexServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 韩志龙
 * @version 1.0
 * @description: TODO
 * @date 2021/5/24 22:20
 */
@Controller
@RequestMapping("/del")
public class DeleteController {
    @Autowired
    private QualityIndexServiceImpl qualityIndexService;
    @RequestMapping("/delete")
    public String delete(String qualityId ){
        qualityIndexService.delete(qualityId);
        return "redirect:/qualityIndex/toFindAll";
    }
}
